projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3138ba
)
Make new fileio test more reliable
author
Lars Ingebrigtsen
<larsi@gnus.org>
Sat, 11 Jun 2022 16:15:35 +0000
(18:15 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sat, 11 Jun 2022 16:15:35 +0000
(18:15 +0200)
* test/src/fileio-tests.el: Use a unibyte buffer to avoid length
confusion.
test/src/fileio-tests.el
patch
|
blob
|
history
diff --git
a/test/src/fileio-tests.el
b/test/src/fileio-tests.el
index 29f11fc4725eda8993c13bc18d19c7fa2403d735..c137ce06f1a3c981e194fcf6b4bb917bab974b37 100644
(file)
--- a/
test/src/fileio-tests.el
+++ b/
test/src/fileio-tests.el
@@
-196,6
+196,7
@@
Also check that an encoding error can appear in a symlink."
(ert-deftest fileio-tests--non-regular-insert ()
(skip-unless (file-exists-p "/dev/urandom"))
(with-temp-buffer
+ (set-buffer-multibyte nil)
(should-error (insert-file-contents "/dev/urandom" nil 5 10))
(insert-file-contents "/dev/urandom" nil nil 10)
(should (= (buffer-size) 10))))